﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xyz.Framework.Shared.DataContracts.Enums;

namespace Xyz.Framework.Shared.DataContracts.Constants
{
    public class AuthorityConstant
    {
        public AuthorityConstant(EFrameworkAuthority Id,string name)
        {
            this.Id = Id;
            this.Name = name;
        }

        public EFrameworkAuthority Id { get; set; }
        public string Name { get; set; }


        public static AuthorityConstant[] GetValues()
        {
            List<AuthorityConstant> _result = new List<AuthorityConstant>();
            _result.Add(new AuthorityConstant(EFrameworkAuthority.doktor_guncelle,"Doktor Güncelle"));
            _result.Add(new AuthorityConstant(EFrameworkAuthority.doktor_kaydet, "Doktor Kaydet"));
            _result.Add(new AuthorityConstant(EFrameworkAuthority.doktor_sil, "Doktor Sil"));
            _result.Add(new AuthorityConstant(EFrameworkAuthority.hasta_guncelle, "Hasta Güncelle"));
            _result.Add(new AuthorityConstant(EFrameworkAuthority.hasta_kaydet, "Hasta Kaydet"));
            _result.Add(new AuthorityConstant(EFrameworkAuthority.hasta_sil, "Hasta Sil"));
            _result.Add(new AuthorityConstant(EFrameworkAuthority.hastane_kaydet, "Hastane Kaydet"));
            _result.Add(new AuthorityConstant(EFrameworkAuthority.kullanici_guncelle, "Kullanıcı Güncelle"));
            _result.Add(new AuthorityConstant(EFrameworkAuthority.kullanici_kaydet, "Kullanıcı Kaydet"));
            _result.Add(new AuthorityConstant(EFrameworkAuthority.kullanici_sil, "Kullanıcı Sil"));
            return _result.ToArray();
        }


    }
}
